package test.java.com.unicom.netpd.rpa.util;

import com.unicom.netpd.rpa.BlockInstanceBase;
import com.unicom.netpd.rpa.entity.block.BlockOutput;

import java.io.File;
import java.util.HashMap;
import java.util.Map;

public class Upload extends BlockInstanceBase {

    //        Map maplc = super.getLocalConfig("test");
    Map<String, String> maplc = new HashMap<>();
    File file = new File("C://work//test.excel");
    Map mapgv = super.getGlobalVar();

    @Override
    public Boolean prepare(String flowInstanceId, String blockInstanceId) {
        return true;

    }

    @Override
    public BlockOutput execute() {
        String fileid = "ej2l4mgkrmckds";
        mapgv.put("a12345", fileid);
        BlockOutput b = new BlockOutput();
        b.setOutputMap(mapgv);
        return b;
    }

    @Override
    public Boolean after() {
        return true;
    }
}
